package semiproject.models;

public class ProfessorVO {
	//primary key 값을 가지는 것도 만들어야 한다!!!
	private String pNo;
	private String pName;
	private String fields;
	private String skills;
	//private SubjectVO sjvo[] = new SubjectVO[a]; => 이렇게도 할 수 있다!
	
	public ProfessorVO(String pNo, String pName, String fields, String skills) {
		this.pName = pName;
		this.fields = fields;
		this.skills = skills;
	}

	public String getpNo() {
		return pNo;
	}

	public void setpNo(String pNo) {
		this.pNo = pNo;
	}

	public String getpName() {
		return pName;
	}

	public void setpName(String pName) {
		this.pName = pName;
	}

	public String getFields() {
		return fields;
	}

	public void setFields(String fields) {
		this.fields = fields;
	}

	public String getSkills() {
		return skills;
	}

	public void setSkills(String skills) {
		this.skills = skills;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(pNo).append("/").append(pName).append("/").append(fields).append("/").append(skills);
		return sb.toString();
	}
}
